package cn.iphone.NPlayer.dto;

import cn.iphone.NPlayer.util.AssertUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author IKUN
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterDto {
    @Pattern(regexp = AssertUtil.PHONE_FORMAT , message = "手机格式错误！")
    private String mobile;
    @Size(min = 6, max = 12, message = "密码在 6 - 12 之间")
    private String password;
    @NotNull(message = "手机验证码不能为空")
    private String smsCode;
    private Integer regChannel;
}
